﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchaseOrder.aspx.cs" Inherits="Main_ServiceInvoice_PurchaseOrder" Culture="en-GB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%@ Register Src="~/User Controls/MCalender.ascx" TagPrefix="mcal" TagName="Calender" %>
<%@ Register Assembly="CalendarExtenderPlus" Namespace="AjaxControlToolkitPlus" TagPrefix="advancedCalender" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Purchase Order</title>
    <link rel="Stylesheet" href="../../Styles/accounts.css" type="text/css" />
    <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" EnablePageMethods="true"
        runat="server">
    </asp:ScriptManager>
    <%--<div class="divmain" style="width:110%;">--%>
    <acc:heading ID="pagehead" runat="server" HeadingText="Purchase Order" />
    <asp:UpdateProgress DynamicLayout="false" ID="UpdProgress" runat="server">
        <ProgressTemplate>
            <div align="center">
                <img src="../../Images/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:HiddenField ID="hidFormatFrist" runat="server" />
    <asp:HiddenField ID="hidFormatSecond" runat="server" />
    <asp:HiddenField ID="hidPOId" runat="server" Value="0" />
    <div style="width: 98%; margin-left: 5px; margin-top: 10px;">
        <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>--%>
        <div style="margin-left: 5%; margin-right: 5%; width: 90%" align="center">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="true" EnableViewState="false"></asp:Label>
        </div>
        <div style="margin: 2px;">
            Fields marked with <span style="color: Red">*</span> are mandatory</div>
        <table class="tablecontent" style="width: 100%">
            <tr>
                <td class="headtd" colspan="4">
                    Purchase Order Details
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    Bill Format<span style="color: Red">*</span>
                </td>
                <td style="width: 35%;">
                    <asp:DropDownList ID="ddlFormat" runat="server" Width="175px" CssClass="dropdown"
                        AutoPostBack="true" OnSelectedIndexChanged="ddlFormat_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td style="width: 15%">
                    Date<span style="color: Red">*</span>
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtDate" runat="server" Width="80px" CssClass="input" AutoPostBack="true" onkeydown="return EnabledTabKey(this.id,event);"
                        OnTextChanged="txtDate_TextChanged" ValidationGroup="V"></asp:TextBox>
                    <asp:ImageButton ID="btnDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                   <advancedCalender:CalendarExtenderPlus ID="Cal" runat="server"  PopupButtonID="btnDate"  Format="dd/MM/yyyy" TargetControlID="txtDate"></advancedCalender:CalendarExtenderPlus>
                    <%--<AjaxControl:CalendarExtender ID="cal" runat="server" PopupButtonID="btnDate" TargetControlID="txtDate"
                        Format="dd/MM/yyyy">
                    </AjaxControl:CalendarExtender>
                    <AjaxControl:MaskedEditExtender ID="maskExt" runat="server" MaskType="Date" Mask="99/99/9999"
                        TargetControlID="txtDate" CultureName="pt-BR">
                    </AjaxControl:MaskedEditExtender>
                    <AjaxControl:MaskedEditValidator ID="maskValid" runat="server" ControlExtender="maskExt"
                        InvalidValueMessage="Invalid Date" IsValidEmpty="true" Display="Dynamic" ValidationGroup="V"
                        ControlToValidate="txtDate"></AjaxControl:MaskedEditValidator>--%>
                    <%--<mcal:Calender ID="POCal" runat="server" TargetControlId="txtDate"/>--%>
                </td>
            </tr>
            <tr>
                <td>
                    P.O. No.<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:TextBox ID="txtPrefix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onkeydown="return EnabledTabKey(this.id,event);"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="prefixWater" runat="server" TargetControlID="txtPrefix"
                        WatermarkText="Prefix" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txtVoucher" runat="server" Width="70px" CssClass="inputnumber" ValidationGroup="V"
                        MaxLength="10" onKeyPress="return isNumberKey(this.id,event);"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="voucherWater" runat="server" TargetControlID="txtVoucher"
                        WatermarkText="Number" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <asp:TextBox ID="txtSuffix" runat="server" Width="70px" CssClass="input" onKeyPress="return false"
                        onkeydown="return EnabledTabKey(this.id,event);"></asp:TextBox>
                    <AjaxControl:TextBoxWatermarkExtender ID="suffixWater" runat="server" TargetControlID="txtSuffix"
                        WatermarkText="Suffix" WatermarkCssClass="watermark_textbox">
                    </AjaxControl:TextBoxWatermarkExtender>
                    <%--<asp:RequiredFieldValidator ID="reqVoucher" runat="server" SetFocusOnError="true" ControlToValidate="txtVoucher" ValidationGroup="V" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
                <td>
                    Client<span style="color: Red">*</span>
                </td>
                <td>
                    <asp:DropDownList ID="ddlClients" runat="server" Width="240px" 
                        CssClass="dropdown">
                    </asp:DropDownList>
                    <%--<asp:RequiredFieldValidator ID="reqSupplier" runat="server" ControlToValidate="ddlSupplier" InitialValue="0" ValidationGroup="V" SetFocusOnError="true" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td>
                    Payment Mode<span style="color: Red">*</span>
                </td>
                <td>
                    <table>
                        <tr>
                            <td>
                                <asp:RadioButtonList ID="rbtCashCredit" runat="server" onclick="CreditDaysChecked(this.id);" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="Cash" Selected="True" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Credit" Value="1"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCreditDay" runat="server" onKeyPress="return isNumberKey(this.id,event)"
                                    Enabled="false" Width="30px" CssClass="inputnumber" onblur="CreditDays();" MaxLength="3"></asp:TextBox>&nbsp;Days
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    Priority
                </td>
                <td>
                    <asp:DropDownList ID="DdlPriority" runat="server" CssClass="dropdown">
                        <asp:ListItem Text="Regular" Value="0"></asp:ListItem>
                        <asp:ListItem Text="Urgent" Value="1"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
        <%--  </ContentTemplate>
         </asp:UpdatePanel>--%>
    </div>
    <div style="width: 98%; margin-top: 10px; margin-left: 5px">
        <asp:HiddenField ID="hidControl" Value="1" runat="server" />
        <table id="tblPODetails" runat="server" style="width: 100%" class="tablecontent"
            cellpadding="2" cellspacing="0">
            <tr>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Nature of Services
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Descriptions
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Unit
                </td>
                <td style="border-right: 1px solid #818181; border-bottom: 1px solid #818181; text-align: center;
                    font-weight: bold">
                    Rate
                </td>
                <td style="border-bottom: 1px solid #818181; text-align: center; font-weight: bold">
                    Total Amount
                </td>
            </tr>
            <tr>
                <td style="width: 20%; vertical-align: top">
                    <asp:DropDownList ID="ddlService1" runat="server" Width="98%" CssClass="dropdown"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlService_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:HiddenField ID="hidChkTaxable1" runat="server" Value="0" />
                    <asp:HiddenField ID="hidPOChildId1" runat="server" Value="0" />
                </td>
                <td style="width: 20%; vertical-align: top">
                    <asp:TextBox ID="txtDescription1" runat="server" CssClass="input" Width="98%" AutoCompleteType="Disabled"></asp:TextBox>
                </td>
                <td style="width: 20%; vertical-align: top">
                    <asp:TextBox ID="txtUnit1" runat="server" CssClass="inputnumber" onKeyPress="return isNumberKey(this.id,event);"
                        onblur="return CalculateAmount();" Width="98%"></asp:TextBox>
                </td>
                <td style="width: 20%; vertical-align: top">
                    <asp:TextBox ID="txtRate1" runat="server" CssClass="inputnumber" Width="98%" onKeyPress="return isNumberKey(this.id,event);"
                        onblur="return CalculateAmount();" AutoCompleteType="Disabled"></asp:TextBox>
                    <asp:HiddenField ID="hidServiceTaxAmt1" runat="server" />
                    <asp:HiddenField ID="hidPECessAmt1" runat="server" />
                    <asp:HiddenField ID="hidHECessAmt1" runat="server" />
                </td>
                <td style="width: 20%; vertical-align: top">
                    <asp:TextBox ID="txtTotalAmt1" runat="server" CssClass="DisableInputNumber" Width="98%"
                        onkeydown="return EnabledTabKey(this.id,event);" AutoCompleteType="Disabled"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 98%; margin: 5px;">
        <tr>
            <td>
                <asp:LinkButton ID="btnAddMore" runat="server" OnClick="btnAddMore_Click"> 
                    <img src="../../Images/More.jpg" alt="Add New Row" />
                </asp:LinkButton>
            </td>
        </tr>
    </table>
    <div style="width: 98%; margin-top: 5px; margin-left: 5px">
        <table width="100%" class="tablecontent">
            <tr>
                <td valign="top" style="width: 50%">
                    <table width="100%" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="width: 30%;">
                                Prepared by
                            </td>
                            <td style="width: 70%;">
                                <asp:TextBox ID="txtPreparedBy" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Checked By
                            </td>
                            <td>
                                <asp:TextBox ID="txtCheckedBy" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Narration
                            </td>
                            <td>
                                <asp:TextBox ID="txtNarration" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Remarks
                            </td>
                            <td>
                                <asp:TextBox ID="txtRemarks" runat="server" CssClass="input" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" style="width: 50%">
                    <table width="100%" cellpadding="2" cellspacing="0">
                        <tr>
                            <td style="width: 50%">
                                Total Taxable Amt
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalTaxableAmt" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                Total Non Taxable Amt
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalNonTaxableAmt" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            Service Tax
                                            <asp:HiddenField ID="hidServiceTaxRate" runat="server" Value="0" />
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblServiceTaxRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalServiceTax" runat="server" CssClass="DisableInputNumber"
                                    onkeydown="return EnabledTabKey(this.id,event);" Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            P.E.Cess
                                            <asp:HiddenField ID="hidPECessRate" runat="server" Value="0" />
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblPECessRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalPECess" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <table width="100%">
                                    <tr>
                                        <td style="width: 70%; text-align: left">
                                            H.E.Cess
                                            <asp:HiddenField ID="hidHECessRate" runat="server" Value="0" />
                                        </td>
                                        <td style="width: 30%; text-align: right; margin-right: 5px">
                                            <asp:Label ID="lblHECessRate" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtTotalHECess" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                Grand Total
                            </td>
                            <td style="width: 50%; text-align: right">
                                <asp:TextBox ID="txtGrandTotal" runat="server" CssClass="DisableInputNumber" onkeydown="return EnabledTabKey(this.id,event);"
                                    Width="95%"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <div style="width: 98%">
        <table style="width: 98%; text-align: center">
            <tr>
                <td>
                    <asp:Button ID="btnSubmit" Text="Submit" runat="server" CssClass="button" OnClick="btnSave_Click" OnClientClick="return ValidationInput();"
                        ValidationGroup="V" />
                    &nbsp;
                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="button" 
                        onclick="btnCancel_Click" />
                </td>
            </tr>
        </table>
    </div>

    <script type="text/javascript" language="javascript">

        function EnabledTabKey(id, e) {
            var keycode;
            if (window.event) {
                keycode = window.event.keyCode;
            }
            else if (e) {
                keycode = e.which;
            }
            else {
                return true;
            }
            if (keycode == 9) {
                // if is the tab key
                return true;
            }
            else {
                return false;
            }
        }

        function CalculateAmount() {
            var Count = document.getElementById("hidControl").value;
            var ServiceTaxRate = document.getElementById("hidServiceTaxRate").value;
            var PECessRate = document.getElementById("hidPECessRate").value;
            var HECessRate = document.getElementById("hidHECessRate").value;
            var totalTaxable = 0;
            var totalNonTaxable = 0;
            var totalServiceTax = 0;
            var totalPECess = 0;
            var totalHECess = 0;
            for (var i = 1; i <= Count; i++) {
                var totalAmt = 0;
                var ServiceTaxAmt = 0;
                var PECessAmt = 0;
                var HECessAmt = 0;
                var Unit = document.getElementById("txtUnit" + i).value;
                var Rate = document.getElementById("txtRate" + i).value;
                var Taxability = document.getElementById("hidChkTaxable" + i).value;
                if (Unit == '') {
                    Unit = 0;
                }
                if (Rate == '') {
                    Rate = 0;
                }
                if (document.getElementById("ddlService" + i).value != '0') {
                    totalAmt = parseFloat(Unit) * parseFloat(Rate);
                    if (Taxability == '1') {
                        ServiceTaxAmt = (parseFloat(totalAmt) * parseFloat(ServiceTaxRate)) / 100;
                        PECessAmt = (parseFloat(ServiceTaxAmt) * parseFloat(PECessRate)) / 100;
                        HECessAmt = (parseFloat(ServiceTaxAmt) * parseFloat(HECessRate)) / 100;
                        totalTaxable += parseFloat(totalAmt);
                    }
                    else {
                        totalNonTaxable += parseFloat(totalAmt);
                    }
                    totalServiceTax += parseFloat(ServiceTaxAmt);
                    totalPECess += parseFloat(PECessAmt);
                    totalHECess += parseFloat(HECessAmt);

                    document.getElementById("hidServiceTaxAmt" + i).value = parseFloat(ServiceTaxAmt).toFixed(2);
                    document.getElementById("hidPECessAmt" + i).value = parseFloat(PECessAmt).toFixed(2);
                    document.getElementById("hidHECessAmt" + i).value = parseFloat(HECessAmt).toFixed(2);
                    document.getElementById("txtTotalAmt" + i).value = parseFloat(totalAmt).toFixed(2);
                }
            }
            document.getElementById("txtTotalTaxableAmt").value = parseFloat(totalTaxable).toFixed(2);
            document.getElementById("txtTotalNonTaxableAmt").value = parseFloat(totalNonTaxable).toFixed(2);
            document.getElementById("txtTotalServiceTax").value = parseFloat(totalServiceTax).toFixed(2);
            document.getElementById("txtTotalPECess").value = parseFloat(totalPECess).toFixed(2);
            document.getElementById("txtTotalHECess").value = parseFloat(totalHECess).toFixed(2);
            var GrandTotal = parseFloat(totalTaxable) + parseFloat(totalNonTaxable) + parseFloat(totalServiceTax) + parseFloat(totalPECess) + parseFloat(totalHECess);
            document.getElementById("txtGrandTotal").value = parseFloat(GrandTotal).toFixed(2);
        }

        function CreditDays() {
            if (document.getElementById("txtCreditDay").value != '') {
                var days = document.getElementById("txtCreditDay").value;
                if (parseFloat(days) > 365) {
                    alert('Maximum Credit Days is 365 days');
                    document.getElementById("txtCreditDay").value = '365';
                }                              
            }            
        }
        function CreditDaysChecked(id) {
            var Radiolist = document.getElementById(id);
            var Inputs = Radiolist.getElementsByTagName("input");
            for (var i = 0; i < Inputs.length; i++) {
                if (Inputs[i].checked) {
                    if (Inputs[i].value == '0') {
                        document.getElementById("txtCreditDay").value = '';
                        document.getElementById("txtCreditDay").disabled = true;
                    }
                    else if (Inputs[i].value == '1') {
                        document.getElementById("txtCreditDay").disabled = false
                    }
                }
            }
        }
       

        function RoundOff() {
            var posttax = document.getElementById("txtPostTaxTotal").value;
            if (document.getElementById("txtRoundoff").value != '') {
                var roundoff = document.getElementById("txtRoundoff").value;
                var GrandTotal = parseFloat(posttax) + parseFloat(roundoff);
                document.getElementById("txtGrandTotal").value = GrandTotal.toFixed(2);
            }
            else {
                document.getElementById("txtRoundoff").value = '0.00'
                document.getElementById("txtGrandTotal").value = parseFloat(posttax).toFixed(2);
            }
        }

        function ValidateItems() {
            //var flag=new Boolean(true);
            if (document.getElementById("ddlFormat").value == '0') {
                alert('Please Select Bill Format ');
                document.getElementById("ddlFormat").focus();
                return false;
            }
            else if (document.getElementById("txtDate").value == '' || document.getElementById("txtDate").value == '__/__/____') {
                alert('Please Specify P.O. Date');
                document.getElementById("txtDate").focus();
                return false;
            }
            else if (document.getElementById("txtVoucher").value == '' || document.getElementById("txtVoucher").value == 'Number') {
                alert('Please Specify Voucher Number');
                document.getElementById("txtVoucher").focus();
                return false;
            }
            else if (document.getElementById("ddlClients").value == '0') {
                alert('Please Select Client ');
                document.getElementById("ddlClients").focus();
                return false;
            }            

            else if (document.getElementById("ddlService1").value == '0') {
                alert('Please Select At Least One Service ');
                document.getElementById("ddlService1").focus();
                return false;
            }
            else if (document.getElementById("txtUnit1").value == '') {
                alert('Please Specify Unit For First Service');
                document.getElementById("txtUnit1").focus();
                return false;
            }
            else if (document.getElementById("txtRate1").value == '') {
                alert('Please Specify Rate For Service');
                document.getElementById("txtRate1").focus();
                return false;
            }
            else {
                return true;
            }
            //return flag;
        }
        function ValidateItems1() {
            //var flag=new Boolean(true);
            var Count = document.getElementById("hidControl").value;
            for (var i = 2; i <= Count; i++) {
                if (document.getElementById("ddlService" + i).value != '0') {
                    if (document.getElementById("txtUnit" + i).value == '') {
                        alert('Please Specify Unit at Row No ' + ' ' + i);
                        document.getElementById("txtUnit" + i).focus();
                        return false;
                    }
                    if (document.getElementById("txtRate" + i).value == '') {
                        alert('Please Specify Rate at Row No ' + ' ' + i);
                        document.getElementById("txtRate" + i).focus();
                        return false;
                    }
                }
                else if (document.getElementById("txtUnit" + i).value != '') {
                    if (document.getElementById("ddlService" + i).selectedIndex == 0) {
                        alert('Please Specify Services at Row No ' + ' ' + i);
                        document.getElementById("ddlService" + i).focus();
                        return false;
                    }
                    if (document.getElementById("txtRate" + i).value == '') {
                        alert('Please Specify Rate at Row No ' + ' ' + i);
                        document.getElementById("txtRate" + i).focus();
                        return false;
                    }
                }
                else if (document.getElementById("txtRate" + i).value != '') {
                    if (document.getElementById("txtUnit" + i).value == '') {
                        alert('Please Specify Unit in Row No ' + ' ' + i);
                        document.getElementById("txtUnit" + i).focus();
                        return false;
                    }
                    if (document.getElementById("ddlService" + i).value == '0') {
                        alert('Please Specify Service at Row No ' + ' ' + i);
                        document.getElementById("ddlService" + i).focus();
                        return false;
                    }
                }
            }
            return true;
        }

        function ValidationInput() {
            if (ValidateItems() == true && ValidateItems1() == true) {
                return true;
            }
            else {
                return false;
            }
        }

         
    </script>

    <script src="../../Menu/js/jquery.min.js" type="text/javascript"></script>

    <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>

    <script src="../../JavaScript/Commons.js" type="text/javascript"></script>

    </form>
</body>
</html>
